#include <iostream>
#include <string>
#include <memory>
#include "SelectServer.hpp"

static void Usage(std::string str)
{
    printf("Usage:\n\t%s %s\n",str.c_str(),"port");
}

int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        Usage(argv[0]);
        exit(1);
    }

    uint16_t port=atoi(argv[1]);
    std::unique_ptr<SelectServer> ptr(new SelectServer(port));
    ptr->Start();

    return 0;
}